package com.xiaobao.campusLostFoundAfter.mapper;

import com.xiaobao.campusLostFoundAfter.pojo.Views;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ViewsMapper {
    //添加浏览记录
    int addViews(Integer itemId, String type);
    //获取浏览记录
    boolean getViews(Integer itemId, String type);
    //更新浏览记录
    int updateViews(Integer itemId, String type);
    //获取浏览记录数量
    Views getViewsNumber(Integer itemId, String type);
}
